#include "StdAfx.h"
#include <atlbase.h>
#include <atlcom.h>
#include <propkeydef.h>
#include <UIRibbonPropertyHelpers.h>
#include "ComboBoxTextItem.h"


STDMETHODIMP CComboBoxTextItem::GetValue(__in REFPROPERTYKEY key, __out PROPVARIANT *ppropvar)
{
	if (key == UI_PKEY_Label)
    {
		return UIInitPropertyFromString(UI_PKEY_Label, m_text.c_str(), ppropvar);
    }
	//else
    return S_FALSE;
}

STDMETHODIMP CComboBoxTextItem::Initialize(PCWSTR text)
{	
	 m_text = text;
	 return S_OK;
}


CComboBoxTextItem::CComboBoxTextItem(void)
{
}

CComboBoxTextItem::~CComboBoxTextItem(void)
{
}
